import request from '@/utils/request'

export function fetchDaili() {
  return request({
    url: '/settle/index/get_all_agent',
    method: 'get'
  })
}

export function fetchQudao() {
  return request({
    url: '/settle/index/get_all_channel',
    method: 'get'
  })
}

export function fetchOnline() {
  return request({
    url: '/settle/index/get_online_channel',
    method: 'get'
  })
}

export function fetchPv() {
  return request({
    url: '/settle/index/today_admin_pv',
    method: 'get'
  })
}

export function fetchUv() {
  return request({
    url: '/settle/index/today_admin_uv',
    method: 'get'
  })
}

// export function panel() {
//   return request({
//     url: '/settle/index/panel.html',
//     method: 'get'
//   })
// }

export function panel1() {
  return request({
    url: '/settle/index/exit_num.html',
    method: 'post'
  })
}

export function lineData(data) {
  return request({
    url: '/settle/index/last_h24_day30',
    method: 'post',
    data
  })
}



//------------------- new begin ----------------

 
